<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('base/common-header', TEMPLATE_INCLUDEPATH)) : (include template('base/common-header', TEMPLATE_INCLUDEPATH));?>

<div class="alert alert-warning"><strong>注意：</strong>只记录最近15天的操作记录</div>

<div class="btn-group" role="group" aria-label="...">
    <a class="btn btn-success" href="<?php  echo aurl('exportTxt')?>">导出数据</a>
</div>

<table class="table">
    <tr>
        <th style="width:260px">时间</th>
        <th>操作员</th>
        <th>操作记录</th>
    </tr>
    <?php  if(is_array($logs)) { foreach($logs as $item) { ?>
    <tr>
        <td><?php  echo date("Y-m-d H:i:s",$item['create_time'])?></td>
        <td><?php  echo $item['username'];?></td>
        <td><?php  echo $item['label'];?></td>
    </tr>
    <?php  } } ?>
</table>
<?php  echo $page;?>

<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('base/common-footer', TEMPLATE_INCLUDEPATH)) : (include template('base/common-footer', TEMPLATE_INCLUDEPATH));?><script>var we7CommonForModule = document.createElement("script");we7CommonForModule.src = '//cdn.w7.cc/we7/w7windowside.js?v=201904260003';document.body.appendChild(we7CommonForModule)
</script>